package com.zl.dao;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.zl.domain.PageBean;

/*
 * 以后所有的dao接口都要继承basedao
 */
public interface BaseDao <T>{
	public void save(T t);
	public void delete(T t);
	public void update(T t);
	public T findById(Long id);
	public List<T> findAll();
	public PageBean<T> findByPage(Integer pageCode, Integer pageSize, DetachedCriteria criteria);

}
